/**
 * 项目下拉框数据接口
 */
import request from '@/utils/request'

// 获取行政班下拉
export function getEduClassDropDown() {
  return request({
    url: `/organization/dropDown/eduClass`,
    method: 'get'
  })
}

// 根据专业获取行政班下拉
export function getEduClassDropDownByMajor(majorId) {
  return request({
    url: `/organization/dropDown/eduClass/byMajor`,
    method: 'get',
    params: { majorId }
  })
}

// 获取学院下拉
export function getCollegeDropDown() {
  return request({
    url: `/organization/dropDown/college`,
    method: 'get'
  })
}

// 获取专业下拉
export function getMajorDropDown() {
  return request({
    url: `/organization/dropDown/major`,
    method: 'get'
  })
}

// 根据学院获取专业下拉
export function getMajorDropDownByCollege(collegeId) {
  return request({
    url: `/organization/dropDown/major/byCollege`,
    method: 'get',
    params: { collegeId }
  })
}

// 获取身份证类型下拉
export function getIdCardTypeDropDown() {
  return request({
    url: '/member/dropDown/idCardType',
    method: 'get'
  })
}

// 获取教师信息下拉
export function getTeacherDropDownByName(teaName) {
  return request({
    url: '/member/dropDown/teacher/byName',
    method: 'get',
    params: {
      teaName
    }
  })
}

// 获取专业按学院分组下拉数据
export function getMajorDropDownGroupByCollege() {
  return request({
    url: '/organization/dropDown/major/groupByCollege',
    method: 'get'
  })
}

// 获取校区下拉数据
export function getCampusDropDown() {
  return request({
    url: '/organization/dropDown/campus',
    method: 'get'
  })
}

// 获取教室类型下拉数据
export function getClassroomTypeDropDown() {
  return request({
    url: '/organization/dropDown/classroomType',
    method: 'get'
  })
}

// 获取教学楼按校区分组下拉
export function getTeachBuildingDropDownGroupByCampus() {
  return request({
    url: '/organization/dropDown/teachBuilding/byCampus',
    method: 'get'
  })
}

// 获取课程下拉
export function getCourseDropDown() {
  return request({
    url: '/course/dropDown/course',
    method: 'get'
  })
}

// 获取开课按课程分组下拉
export function getCourseScheduleDropDownGroupByCourse() {
  return request({
    url: '/course/dropDown/courseSchedule/byCourse',
    method: 'get'
  })
}

// 按课程类型获取课程列表
export function getCourseDropdownListByCourseProperty(courseProperty) {
  return request({
    url: '/course/dropDown/course/listByCourseProperty',
    method: 'get',
    params: { courseProperty }
  })
}

// 根据条件获取开课下拉数据
export function getCsDropdownListByCondition(reqData) {
  return request({
    url: '/course/dropDown/courseSchedule/listByCondition',
    method: 'post',
    data: reqData
  })
}

// 获取教学时段按周分组下拉
export function getTeachTimeDropDownGroupByWeek() {
  return request({
    url: '/course/dropDown/teachTime/groupByWeek',
    method: 'get'
  })
}

// 获取教室按类型和教学楼分组下拉数据
export function getClassroomDropDownGpByTypeGpByTeachBuilding() {
  return request({
    url: '/organization/dropDown/classroom/groupByType/groupByTeachBuilding',
    method: 'get'
  })
}
